<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<script type="text/javascript">
	 	arr = [45,5,78,90,45,2,234,34,34];

	 	// y[0]=x[0];

	 	function fz (x) {
	 		y = [];
	 		for (var i = 0; i < x.length; i++) {
	 			y[x.length-i-1]=x[i];
	 		};
	 		return y;
	 	}

	 	function data_max (x) {
	 		max=0;
	 		for (var i = 0; i < x.length; i++) {
	 			if(x[i]>max){
	 				max=x[i];
	 			}
	 		};

	 		return max;
	 	}

	 	// res = data_max(arr);

	 	// alert(res);

	 	// fz();

	 	// res = fz(arr);

	 	// alert(res);
	 	// 
	 	// 
	 	arr = [45,[4795,5,78],78,[45,5,78,90,45,2,234,34,34],45,[45,5,78,90],234,34,34];

	 	function max_lenght (w) {
	 		length = 0;
	 		index=0;
	 		for (var i = 0; i < w.length; i++) {
	 			if(typeof(w[i])!="number"){
	 				if(w[i].length>length){
	 					length= w[i].length;
	 					index = i;
	 				}
	 			}
	 		};

	 		return [length,index];
	 	}

	 	res = max_lenght(arr);

	 	alert(res);



	</script>
</head>
<body>
	
</body>
</html>